package com.etc.entity;

import java.io.Serializable;

public class Collections implements Serializable {
    private static final long serialVersionUID = -5775541991665603235L;
    private Integer cId; //收藏编号
    private Integer uId; //收藏用户者编号
    private Integer tId;//攻略编号
    private Integer authorId;//攻略发布者
    private String code;//收藏操作
    private Integer traId;//攻略编号（和tid含义一样，不同表格为了区分，故名字不同
    private String  traTitle;//攻略标题
    private String traContent;//攻略内容
    private String traPicpath;//攻略图片
    private String  traDate;//攻略发布日期
    private  String userName;//攻略发布者姓名

    public Integer getcId() {
        return cId;
    }

    public void setcId(Integer cId) {
        this.cId = cId;
    }

    public Integer getuId() {
        return uId;
    }

    public void setuId(Integer uId) {
        this.uId = uId;
    }

    public Integer gettId() {
        return tId;
    }

    public void settId(Integer tId) {
        this.tId = tId;
    }

    public Integer getAuthorId() {
        return authorId;
    }

    public void setAuthorId(Integer authorId) {
        this.authorId = authorId;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Integer getTraId() {
        return traId;
    }

    public void setTraId(Integer traId) {
        this.traId = traId;
    }

    public String getTraTitle() {
        return traTitle;
    }

    public void setTraTitle(String traTitle) {
        this.traTitle = traTitle;
    }

    public String getTraContent() {
        return traContent;
    }

    public void setTraContent(String traContent) {
        this.traContent = traContent;
    }

    public String getTraPicpath() {
        return traPicpath;
    }

    public void setTtraPicpath(String traPicpath) {
        this.traPicpath = traPicpath;
    }

    public String getTraDate() {
        return traDate;
    }

    public void setTraDate(String traDate) {
        this.traDate = traDate;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Collections(Integer cId, Integer uId, Integer tId, Integer authorId, String code, Integer traId, String traTitle, String traContent, String trapicPath, String tradate, String userName) {
        this.cId = cId;
        this.uId = uId;
        this.tId = tId;
        this.authorId = authorId;
        this.code = code;
        this.traId = traId;
        this.traTitle = traTitle;
        this.traContent = traContent;
        this.traPicpath = traPicpath;
        this.traDate = tradate;
        this.userName = userName;
    }

    public Collections() {
    }

    public Collections(Integer uId, Integer tId, String code) {
        this.uId = uId;
        this.tId = tId;
        this.code = code;
    }

    public Collections(Integer uId, Integer tId) {
        this.uId = uId;
        this.tId = tId;
    }


    @Override
    public String toString() {
        return "collection{" +
                "cId=" + cId +
                ", uId=" + uId +
                ", tId=" + tId +
                ", authorId=" + authorId +
                ", code=" + code +
                ", traId=" + traId +
                ", traTitle='" + traTitle + '\'' +
                ", traContent='" + traContent + '\'' +
                ", trapicPath='" + traPicpath + '\'' +
                ", traDate='" + traDate + '\'' +
                ", userName='" + userName + '\'' +
                '}';
    }
}
